package com.shuwen.gcdj.common.constant;

public class Constants {
    private Constants() {
    }

    /**
     * 正则
     */
    public static final String DATE_PATTERN = "^((19[7-9]\\d|20\\d{2})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(\\s+(20|21|22|23|[0-1]\\d):[0-5]\\d:[0-5]\\d(.0)?)?)?$";

    public static final String DATE_PATTERN_REQUIRED = "^(19[7-9]\\d|20\\d{2})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(\\s+(20|21|22|23|[0-1]\\d):[0-5]\\d:[0-5]\\d(.0)?)?$";

    public static final String MOBILE_PATTERN = "(^([0-9]{3,4}-)?[0-9]{7,8}$)|(^((\\(\\d{3}\\))|(\\d{3}\\-))?(1\\d{10})$)";

    public static final String EMAIL_PATTERN = "^([A-Za-z0-9\\u4e00-\\u9fa5]+([-_.][A-Za-z0-9\\u4e00-\\u9fa5]+)*@([A-Za-z0-9]+[-.])+[A-Za-z]{2,5})?$";


    //系统
    public static final String SYS_NAME = "系统";

    /**
     * 分隔符等
     */
    public static final String COMMA = ",";


    /**
     * GBK
     */
    public static final String GBK = "GBK";

    /**
     * 设备区域
     */
    public static final String AREAS = "Basics_Equipment_AreaLocation";

    /**
     * 设备安装区域
     */
    public static final String INSTALL_AREAS = "Basics_Equipment_Installlocation";

    /**
     * 工单状态
     */
    public static final String ORDER_STATE = "Order_Maintenanceorderdetail_State";

    /**
     * 设备类型
     */
    public static final String EQUIPMENT_TYPE = "Basics_Equipment_Type";


    /**
     * UTF-8
     */
    public static final String UTF_8 = "UTF-8";

    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String DISPLAY_NAME = "displayName";

    public static final String STATUS = "status";

    public static final String CURRENT_USER_INFO = "currentUserInfo";

    public static final String START_TIME = "startTime";

    public static final String END_TIME = "endTime";

    /**
     * 部件等级
     */

    public static final String STR_ONE = "0";
    public static final String STR_TO = "1";
    /**
     * 数据表通用字段
     */

    public static final String CREATE_ID = "createId";

    public static final String UPDATE_ID = "updateId";

    public static final String CREATE_DEPT_ID = "createDeptId";

    public static final String COMPANY_CODE = "companyCode";


    /**
     * Token认证
     */
    public static final String JWT_TOKEN_HEADER_KEY = "eceibstoken";

    /**
     * powercode
     */
    public static final String POWER_CODE = "powercode";
    /**
     * 菜单权限页面
     */
    public static final Integer MENU_TYPE = 1;
    /**
     * 按钮权限页面
     */
    public static final Integer POWER_TYPE = 2;

    /**
     * subPowerCode
     */
    public static final String SUB_POWER = "subpower";

    public static final String HEADER_KEY_API_CODE = "apicode";


    public static final String APPLICATION = "application";

    public static final String FIELD_KEY_IS_DELETE = "is_delete";
    public static final String FIELD_KEY_PARENT_ID = "parent_id";

    public static final Integer IS_DELETE_NORMAL = 0;
    public static final Integer IS_DELETE_YES = 1;
    //    是否启用模板（启动1/0关）
    public static final Integer IS_ACTIVE_TEM = 1;
    public static final Integer IS_NOT_ACTIVE = 0;

    //    是否是模板
    public static final Integer IS_TEMP = 0;

    public static final Integer IS_FLOW = -1;

    //    专业（1.机械 2电气）
    public static final Integer MAJOR_DIAN = 2;
    public static final Integer MAJOR_JI = 1;

    public static final Integer IS_ACTIVE = 0;
    public static final Integer IS_SECRET = 0;

    public static final Integer INIT_LEVEL = 1;

    public static final Integer ADD_TYPE_NORMAL_ADD = 1;
    public static final Integer ADD_TYPE_WITH_UPDATE = 2;

    public static final Integer IS_HIDDEN_YES = 1;
    public static final Integer IS_HIDDEN_NORMAL = 0;
    public static final String IS_HIDDEN_ALL = "0";

    public static final Integer API_NODE_TYPE_CHILD_API = 1;
    public static final Integer API_NODE_TYPE_PACKAGE = 2;

    public static final Integer USER_LOGIN_FROM = 2;

    public static final Integer POWER_API_SETTING_TYPE_BY_PAGE_CODE = 1;
    public static final Integer POWER_API_SETTING_TYPE_BY_API_BIND_POWER_CODE = 2;
    public static final Integer POWER_API_SETTING_TYPE_BY_DEFAULT = 3;

    public static final String CURRENT_USER_INFO_REQUEST_KEY = "currentUserInfo";
    public static final String REQUEST_KEY_POWER_CODE = "powerCode";

    public static final Integer FRP_AUTH_OP_TYPE_ADD = 1;
    public static final Integer FRP_AUTH_OP_TYPE_REMOVE = 2;

    public static final Integer FRP_AUTH_TYPE_ADMIN = 1;
    public static final Integer FRP_AUTH_TYPE_VIEW_ALL = 2;
    public static final Integer FRP_AUTH_TYPE_VIEW_COMMON_SECRET = 3;
    public static final Integer FRP_AUTH_TYPE_VIEW_COMMON_BUS = 4;

    public static final Integer RMP_LESSON_OWNER_ADMIN = 5;
    public static final Integer RMP_LESSON_OWNER_VIEW = 6;
    public static final Integer RMP_LESSON_RECEIVE_APPLY_MSG = 7;

    public static final Integer FRP_FLOW = 1;
    public static final Integer FRP_FLOW_TWO = 2;
    public static final Integer FRP_FLOW_TREE = 3;
    public static final Integer FRP_FLOW_FOUR = 4;

    public static final Integer FRP_FLOW_FIVE = 5;
    public static final Integer FRP_FLOW_SIX = 6;
    public static final Integer FRP_FLOW_SEVEN = 7;


    //报修来源
    public static final Integer LEVEL_ONE = 1;
    public static final Integer LEVEL_TWO = 2;

    //趋势平稳度健康名称
    public static final String LIFTING_HEALTH = "Lifting_Health";

    public static final String LIFTING_MECHANISM = "LM001"; //起升位置code
    public static final String TROLLEY_LOCATION = "TL001";  //上下小车code
    public static final String CRANE_MECHANISM = "CM001";   //起重位置code
    public static final String[] NAMES = {"整机", "卷筒1", "卷筒2", "卷筒3"};


    //websocket查询设备code
    //public static final String EQUIPMENT_CODE_SETTING = "EquipmentCodeSetting";
    //websocket查询长连接地址
    public static final String WEB_SOCKET_CONNECT = "WebSocketConnect";


    //Td超级表code
    public static final String EQUIPMENT_CODE_TDSTABLE = "EquipmentCode_TDSTable";
    //传感器TD子表
    public static final String SENSOR_TABLES = "SensorTables";
    //plc状态
    public static final String PLC_MONITOR = "plc_monitor";

    public static final String PLC_STATUS = "plc_status";
    //应变
    public static final String STRAIN_MONITOR = "strain_monitor";
    //振动
    public static final String VIBRATING_MONITOR = "vibrating_monitor";
    //超级表分类



    //吊机 600
    //pLc传感器表
    public static final String GANTRY_CRANE_PLC = "gantry_crane_plc";
    //应变
    public static final String GANTRY_CRANE_STRAIN = "gantry_crane_strain";
    //倾角
    public static final String GANTRY_CRANE_TILT = "gantry_crane_tilt";
    //上车振动
    public static final String GANTRY_UPPER_VIBRATION = "gantry_upper_vibration";
    //下车振动
    public static final String GANTRY_DOWN_VIBRATION = "gantry_down_vibration";





    //传感器统计总重
    public static final String STATISTICS_EQUIPMENT_WEIGHT = "Statistics_Equipment_Weight";

    //传感器统计大车位置
    public static final String STATISTICS_EQUIPMENT_POSITION = "Statistics_Equipment_Position";

    //传感器统计上小车位置
    public static final String STATISTICS_EQUIPMENT_TOP_POSITION = "Statistics_Equipment_TopPosition";

    //传感器统计下小车位置
    public static final String STATISTICS_EQUIPMENT_UNDER_POSITIONS = "Statistics_Equipment_underPositions";


    //起重机设备对象
    public static final String CRANE_EQUIPMENT_OBJECT = "Crane_Equipment_Object";


    //热力图字典位置code
    public static final String STATISTICS_OPERATINGMODEOPERATION_POSITION = "statistics_operatingmodeoperation_Position";
    //Td表查询数量与时间区间
    public static final String SENSOR_STATISTICS = "SensorStatistics";
    //首页应变 和 首页振动
    public static final Integer HOME_STRAIN = 10001;
    //状态监控中心-主结构-倾角
    public static final Integer MAIN_STRUCTURE_POSITION = 10003;
    //状态监控中心-主梁-应变
    public static final Integer MAIN_BEAM1 = 10004;
    //故障检测-黄色-倾角传感器
    public static final Integer YELLOW_INCLINATION = 10005;
    //故障检测-红色-应变传感器
    public static final Integer RED_STRAIN = 10006;
    //故障检测-蓝色-震动传感器
    public static final Integer BLUE_VIBRATION = 10007;
    //状态监控中心-起升机构状态
    public static final Integer VIBRATION_SENSOR = 10009;
    //Plc实时数据
    public static final Integer CONDITION_MANAGEMENT=10010;

    //状态监控中心-查询历史时间
    public static final String CONDITION_MONITORING_HISTORY_INTERVAL = "ConditionMonitoring_History_Interval";

    //首页动画
    //应变传感器
    public static final String STATISTICS_STRAIN_REAL_TIME_SENSOR = "Statistics_StrainReal_TimeSensor";
    //振动
    public static final String STATISTICS_VIBRATION_REAL_TIME_DATA_SENSOR = "Statistics_VibrationReal_TimeDataSensor";

    //首页Plc起升机构位置动画传感器
    public static final String HOME_ANIMATION_POSITION_SENSOR = "HomeAnimationPositionSensor";

    //首页Plc重量动画传感器
    public static final String HOME_ANIMATION_WEIGHT = "HomeAnimationWeight";
    //动画设备总长度
    public static final String DEVICE_AREA_LENGTH = "DeviceArea_length";
    //首页俯视大图设备区域长度
    public static final String DEVICE_AREA_DISTANCE = "Device_area_distance";


    //上小车起升机构
    public static final String ONTHETROLLEY = "onthetrolley";
    //下小车起升机构
    public static final String OFFTHETROLLEY = "offthetrolley";
    //上小车起升机构1#起升计算
    public static final String ONTHETROLLEY_1 = "onthetrolley1";
    //上小车起升机构1#算法
    public static final String LIFTING_A = "lifting_A";
    //上小车起升机构2#起升计算
    public static final String ONTHETROLLEY_2 = "onthetrolley2";
    //上小车起升机构2#算法
    public static final String LIFTING_B = "lifting_B";
    //上小车起升机构3#起升计算
    public static final String ONTHETROLLEY_3 = "onthetrolley3";
    //上小车起升机构3#算法
    public static final String LIFTING_C = "lifting_C";


    //起升机构速度
    public static final String SPEED = "Speed";
    //起升机构载荷
    public static final String LOAD = "Load";

    //下小车起升机构1#起升计算
    public static final String OFFTHETROLLEY_1 = "offthetrolley1";
    //下小车起升机构2#起升计算
    public static final String OFFTHETROLLEY_2 = "offthetrolley2";
    //下小车起升机构3#起升计算
    public static final String OFFTHETROLLEY_3 = "offthetrolley3";

    public static final Integer CHUNK = 1;


    //起升机构1#起升计算公式对呀字典Value值
    public static final Integer LIFTING_MECHANISM_1_COMPUTE = 1;
    //起升机构2#起升计算公式对呀字典Value值
    public static final Integer LIFTING_MECHANISM_2_COMPUTE = 2;
    //起升机构3#起升计算公式对呀字典Value值
    public static final Integer LIFTING_MECHANISM_3_COMPUTE = 3;


    //A跨标识
    public static final String CROSS_ZONE_A = "A";

    //B跨标识
    public static final String CROSS_ZONE_B = "B";

    //C跨标识
    public static final String CROSS_ZONE_C = "C";

    //A跨区域标识value
    public static final Integer EQUIPMENT_AREA_A = 1;

    //B跨区域标识value
    public static final Integer EQUIPMENT_AREA_B = 2;

    //C跨区域标识value
    public static final Integer EQUIPMENT_AREA_C = 3;

    //查询数据时间差
    public static final Integer TIME_DIFFERENCE = 3;

    //查询状态监控中心振动传感器数据时间差
    public static final Integer VIBRATION_TIME = 13;

    //查询数据条数
    public static final Integer NUMBER_OF_QUERIES = 50;

    //结果
    public static final String OUTCOME = "0";
    //计算公式
    public static final String COMPUTE = "-0";


    //小车类型
    public static final String CRANE_TROLLEY_TYPE = "Crane_trolley_type";
    //上小车对应值
    public static final Integer TROLLEY_NAME_ABOVE_VALUE = 1;
    //下小车对应值
    public static final Integer TROLLEY_NAME_UNDER_VALUE = 2;


    //plc传感器机构算法
    public static final String SENSOR_ALGORITHM = "Sensor_algorithm";


    //状态中心
    //状态监测位置
    public static final String BASICS_SENSOR_MAIN_BEAM_POSITION = "Basics_Sensor_MainBeamPosition";
    //主梁位置code
    public static final String MAIN_BEAM = "Main_beam";
    //主结构位置code
    public static final String MAIN_STRUCTURE = "Main_structure";
    //主梁位置code
    public static final String MAIN_BEAM_VALUE = "1";
    //主结构位置code
    public static final String MAIN_STRUCTURE_VALUE = "2";
    //状态检测中心-起升机构-振动传感器数采状态
    public static final String MONITOR_VIBRATION_STATUS = "Monitor_Vibration_Status";
    //起升机构位置parentCode
    public static final String STATISTICS_TRENDSTABILITY_MONITOR_LOCATION = "StatisticsTrendstability_MonitorLocation";
    //起升机构位置
    public static final String LIFTING = "Lifting";
    //小车位置
    public static final String TROLLEY = "Trolley";
    //大车位置
    public static final String CART_LOCATION = "Cart_location";
    //主结构位置code
    public static final String MAIN_STRUCTURE_CODE = "MainStructure";

    //传感器点位
    public static final String SET_SENSOR_POINT = "Set_Sensor_Point";
    //PLC点位
    public static final String PLC_EARLY_WARNING_MONITOR_POINT = "PLC_Early_Warning_Monitor_Point";

    //  计划周期类型
    //卷筒轴健康度code
    public static final String REEL_SHAFT = "001";
    //卷筒轴健康度code
    public static final String BEARING = "002";

    /// 卷筒健康度标识
    public static final int REEL_HEALT = 2;
    /// 轴承健康度标识
    public static final int BEARING_HEALT = 4;

    //  计划周期类型
    //    每天
    public static final Integer MEI = 0;
    //    周
    public static final Integer WEEKLY = 1;
    //    月
    public static final Integer MONTHLY = 2;
    //    季
    public static final Integer SEASON = 3;
    //    年
    public static final Integer YEARLY = 4;
    //    自定义天
    public static final Integer CUSTOMER_DAY = 6;
    //    隔天
    public static final Integer EVERY_DAY = 5;


    /**
     * 维保
     */
    /// <summary>
    /// 部门
    /// </summary>
    public static final String BASICS_SYS_DICTIONARY_DEPARTMENT = "Basics_SysDictionary_Department";
    /// <summary>
    ///维保状态
    /// </summary>
    public static final String ORDER_MAINTENANCEORDERDETAIL_STATE = "Order_Maintenanceorderdetail_State";
    /// <summary>
    /// 维保专业
    /// </summary>
    public static final String ORDER_MAINTENANCEORDERDETAIL_MAJOR = "Order_Maintenanceorderdetail_Major";
    /// <summary>
    /// 设备位置
    /// </summary>
    public static final String BASICS_EQUIPMENT_AREA_LOCATION = "Basics_Equipment_AreaLocation";
    /// <summary>
    /// 维保类型
    /// </summary>
    public static final String MAINTAIN_TYPE = "Maintain_Type";
    /// <summary>
    /// 维保操作
    /// </summary>
    public static final String ORDER_MAINTENANCEORDERFLOW_OPERATE_TYPE = "Order_Maintenanceorderflow_OperateType";


    //    计划周期
    public static final String STRATEGY_PLAN_DETAIL_PLAN_CYCLETYPE = "Strategy_PlanDetail_PlanCycleType";

    //    计划状态
    public static final String STRATEGY_PLAN_DETAIL_STATE = "Strategy_PlanDetail_State";


    // 字典ParentCode
    //检查项结果
    public static final String STRATEGY_INSPECTIONITEM_RESULT = "Strategy_Inspectionitem_InspectionResult";

    public static final String STRATEGY_INSPECTIONITEM_DISPOSAL_METHOD = "Strategy_InspectionItem_DisposalMethod";


    /// <summary>
    /// 工单状态
    /// </summary>
    public static final String REPAIR_STATUS = "Repair_Status";
    /// <summary>
    /// 工单等级
    /// </summary>
    public static final String REPAIR_ORDER_LEVEL = "Repair_Order_Level";
    /// <summary>
    /// 工单来源
    /// </summary>
    public static final String REPAIR_ORDER_SOURSCE = "Repair_Order_Soursce";
    /// <summary>
    /// 拖期工单来源
    /// </summary>
    public static final String ORDER_DELAYCONFIGURATION_SOURCE = "Order_Delayconfiguration_Source";

    /// <summary>
    /// 检查项检查结果
    /// </summary>
    public static final String STRATEGY_INSPECTION_ITEM_INSPECTION_RESULT = "Strategy_InspectionItem_InspectionResult";

    /// <summary>
    /// 检查项处置方式
    /// </summary>
    public static final String STRATEGY_INSPECTION_ITEM_DISPOSAL_METHOD = "Strategy_InspectionItem_DisposalMethod";

    /// <summary>
    /// 设备结构类型
    /// </summary>
    public static final String BASICS_STRUCTURE_TYPE = "Basics_Structure_Type";

    /// <summary>
    /// 设备一级结构
    /// </summary>
    public static final String BASICS_STRUCTURE_FIRST_NAME = "Basics_Structure_First_Name";

    /// <summary>
    /// 设备二级结构
    /// </summary>
    public static final String BASICS_STRUCTURE_SECOND_NAME = "Basics_Structure_Second_Name";

    /// <summary>
    /// 设备三级结构
    /// </summary>
    public static final String BASICS_STRUCTURE_THIRD_NAME = "Basics_Structure_Third_Name";

    // 应变传感器点位父级编号
    public static final String STRAIN_SENSOR_POINT = "Strain_Sensor_Point";

    // 应变传感器点位父级编号
    public static final String TILT_SENSOR_POINT = "Tilt_Sensor_Point";

    // 振动传感器点位父级编号
    public static final String VIBRATING_SENSOR_POINT = "Vibrating_Sensor_Point";

    // 字典有效值
    public static final Integer SYS_DICTIONARY_STATE_VALID = 1;

    //td数据库时间格式
    public static final String TD_DATATIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
    public static final String TD_YMD_HMS_FORMAT = "yyyy-MM-dd HH:mm:ss";
    //时分秒时间格式
    public static final String TD_TIME_FORMAT = "HH:mm:ss";

    public static final Integer ZERO = 0;
    public static final Integer ONE = 1;
    public static final Integer TWO = 2;
    public static final Integer THREE = 3;
    public static final Integer FOUR = 4;
    public static final String HORIZONTAL_DIRECTION = "水平方向";
    public static final Integer HORIZONTAL_DIRECTION_VALUE = 2;
    public static final String VERTICAL_DIRECTION = "竖向方向";
    public static final Integer VERTICAL_DIRECTION_VALUE = 1;
    public static final String COMPLETE_MACHINE = "整机";
    public static final Integer COMPLETE_MACHINE_VALUE = 1;
    public static final String HEALTH_RELL = "卷筒";
    public static final Integer HEALTH_RELL_VALUE = 2;
    public static final String HEALTH_CONSUMABLE = "易耗损";
    public static final Integer HEALTH_CONSUMABLE_VALUE = 3;
    public static final String HEALTH_BEARINGS = "轴承";
    public static final Integer HEALTH_BEARINGS_VALUE = 4;
    public static final String GIRDER_TRANSFORMATION = "主梁变形";
    public static final Integer GIRDER_TRANSFORMATION_VALUE = 4;
    public static final String  HOME_MAIN_STRUCTURE = "主结构";
    public static final Integer HOME_MAIN_STRUCTURE_VALUE = 5;
    public static final String COILING_BLOCK_HEALTH = "卷筒健康度";
    public static final String INDEX_PLC_ALARM_MESSAGE_TITLE = "PLC告警";
    public static final String INDEX_ORDER_ALARM_MESSAGE_TITLE = "工单消息";
    public static final String INDEX_MESSAGE = "授权失败";
    public static final String PLC_CONTENT = "该机构于【\" {0} \"】发生\" {1} \"异常";
    public static final String SENSOR_INFORMATION_STATISTICS = "SensorInformationStatistics";


    //报表
    public static final String REEL = "卷筒";
    public static final String MACHINE = "整机";
    public static final String ABNORMAL = "异常";
    public static final String EARLY_WARNING = "预警";
    public static final String NORMAL = "正常";
    //异常阈值
    public static final Integer ANOMALY_THRESHOLD = 33;
    //预警阈值
    public static final Integer ALERT_THRESHOLD = 66;
    //标识
    public static final Integer LOGOTYPE_ONE = 1;
    public static final Integer LOGOTYPE_TWO = 2;
    public static final Integer LOGOTYPE_THREE = 3;
    public static final String PERIOD_TYPE_DAY = "1";
    public static final String PERIOD_TYPE_WEEK = "2";
    public static final String PERIOD_TYPE_MONTH = "3";
    public static final String JIANG_KANG = "健康";
    //设备台账类型
    public static final String EQUIPMENT_TYPE_CONFIG = "Equipment_Type";
    public static final String ERROR_MESSAGE = "数据不存在";
    public static final  String EQUIPMTNTA_CODE="0";

    //故障检测-倾角点位对应配置
    public static final String TILT_HISTORY_POINT_LOCATION = "Tilt_History_Point_Location";

    public static final String EXTERNAL_SOURCES = "External_Sources"; //配置外来地址
    public static final String SINGLE_SCENARIO = "Single_Scenario"; //单一设备
    public static final String OVERALL_SCENE = "Overall_Scene"; //整体设备
    public static final String IFRAME_URL = "Iframe_Url";
    public static final String NULL_HANDLING = "/";

    //plc预警采集
    public static final String NORMAL_SIGN = "1";
    public static final String EXCEPTION_SIGN = "0";

    //获取颜色
    public static final String SENSOR_COLOR = "Sensor_Color";
}

